/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.suspend.remote;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;

public abstract interface IQRemoteService extends IInterface {
    public abstract boolean isPrimary(String paramString);

    public abstract void updateLoginedState(String paramString1, String paramString2, String paramString3);

    public static abstract class a extends Binder implements IQRemoteService {
        public a() {
            attachInterface(this, "com.qihoo.gamecenter.sdk.suspend.remote.IQRemoteService");
        }

        public static IQRemoteService a(IBinder paramIBinder) {
            if (paramIBinder == null)
                return null;
            IInterface localIInterface = paramIBinder
                    .queryLocalInterface("com.qihoo.gamecenter.sdk.suspend.remote.IQRemoteService");
            if ((localIInterface != null) && (localIInterface instanceof IQRemoteService))
                return ((IQRemoteService) localIInterface);
            return new a(paramIBinder);
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2) {
            String str1;
            switch (paramInt1) {
            case 1598968902:
                paramParcel2.writeString("com.qihoo.gamecenter.sdk.suspend.remote.IQRemoteService");
                return true;
            case 1:
                paramParcel1.enforceInterface("com.qihoo.gamecenter.sdk.suspend.remote.IQRemoteService");
                str1 = paramParcel1.readString();
                boolean bool = isPrimary(str1);
                paramParcel2.writeNoException();
                paramParcel2.writeInt((bool) ? 1 : 0);
                return true;
            case 2:
                paramParcel1.enforceInterface("com.qihoo.gamecenter.sdk.suspend.remote.IQRemoteService");
                str1 = paramParcel1.readString();
                String str2 = paramParcel1.readString();
                String str3 = paramParcel1.readString();
                updateLoginedState(str1, str2, str3);
                paramParcel2.writeNoException();
                return true;
            }
            return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2);
        }

        private static class a implements IQRemoteService {
            private IBinder a;

            a(IBinder paramIBinder) {
                this.a = paramIBinder;
            }

            public IBinder asBinder() {
                return this.a;
            }

            public boolean isPrimary(String paramString) {
                Parcel localParcel1 = Parcel.obtain();
                Parcel localParcel2 = Parcel.obtain();
                int i;
                try {
                    localParcel1.writeInterfaceToken("com.qihoo.gamecenter.sdk.suspend.remote.IQRemoteService");
                    localParcel1.writeString(paramString);
                    this.a.transact(1, localParcel1, localParcel2, 0);
                    localParcel2.readException();
                    i = (localParcel2.readInt() != 0) ? 1 : 0;
                } finally {
                    localParcel2.recycle();
                    localParcel1.recycle();
                }
                return i;
            }

            public void updateLoginedState(String paramString1, String paramString2, String paramString3) {
                Parcel localParcel1 = Parcel.obtain();
                Parcel localParcel2 = Parcel.obtain();
                try {
                    localParcel1.writeInterfaceToken("com.qihoo.gamecenter.sdk.suspend.remote.IQRemoteService");
                    localParcel1.writeString(paramString1);
                    localParcel1.writeString(paramString2);
                    localParcel1.writeString(paramString3);
                    this.a.transact(2, localParcel1, localParcel2, 0);
                    localParcel2.readException();
                } finally {
                    localParcel2.recycle();
                    localParcel1.recycle();
                }
            }
        }
    }
}